package com.landmesure.settings.fragment.argsinfo;

import java.util.ArrayList;

public final class ArgumentsInfo implements Cloneable{
    public String mPropType;    //属性类型
    public String mPropName;    //属性名
    public String mPropValue;    //属性值
    public boolean mIsSelect;   //属性值是否可下拉
    public ArrayList<String> mSelects;    //下拉列表集合
    public String mSelectStr;    //下拉默认选中字串
    public String mUnits;    //单位
    public String mArguType;    //参数类型
    public String mArguValue;    //参数编码
    public boolean mIsEditable;    //属性值是否可编辑

    public ArgumentsInfo(String propType, String propName, String propValue, String units,
                         String arguType, String arguValue, boolean isEditable) {
        this(propType, propName, propValue, units, arguType, arguValue, isEditable,
                false, null, null);
    }

    public ArgumentsInfo(String propType, String propName, String propValue, String units,
                         String arguType, String arguValue, boolean isEditable, boolean isSelect,
                         ArrayList<String> selects, String selectStr) {
        mPropType = propType;
        mPropName = propName;
        mPropValue = propValue;
        mUnits = units;
        mArguType = arguType;
        mArguValue = arguValue;
        mIsEditable = isEditable;
        mIsSelect = isSelect;
        mSelects = selects;
        mSelectStr = selectStr;
    }

    @Override
    public Object clone() {
        ArgumentsInfo infoClone = null;
        try {
            infoClone = (ArgumentsInfo) super.clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
        return infoClone;
    }
}
